import QtQuick 2.6

import "../Config"

Item {
    property double progress
    property bool showText: true
    property bool showMask: true
    Rectangle {
        visible: showMask
        width:parent.width
        height:parent.height * (1-progress)
        color: Color.uploadingMask
    }
    Text {
        visible: showText
        anchors.centerIn: parent
        font.pixelSize: Size.font32
        color: Color.foreground
        text: String((progress * 100).toFixed(1)) + "%"
    }
}
